package com.gome.ocean.dao.authority;

import java.util.List;

import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.gome.ocean.dao.model.authority.RoleFunction;



@Repository("roleFunctionDAO")
public interface RoleFunctionDAO {

    int insertRoleFunction(RoleFunction RoleFunction);

    int removeRoleFunctionById(Long id);

    int updateRoleFunction(RoleFunction RoleFunction);

    RoleFunction findRoleFunctionById(Long id);

    List<RoleFunction> findAllRoleFunctions(RowBounds rowBounds);

    List<RoleFunction> findRoleFunctionByRoleId(Long roleId);
    
    public Integer deleteRoleFuncByRoleId(Long roleId);
    
    public Integer insertRoleFuncList(List<RoleFunction> roleFuncList);

}
